<div id="wrapper">
    <div id="page-wrapper">
        <div class="panel panel-primary">
            <div class="panel-heading"><h5 class="panel-title"></h5></div>
            <div class="panel-body">
                <table id="coupontable" data-toolbar="#toolbar"></table>
                <div id="toolbar">
                    <button id="toolbar-add" class="btn btn-danger" data-toggle="modal" data-target="#myModal">
                        <span class="glyphicon glyphicon-plus"></span> 增加
                    </button>
                </div>
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
                     aria-hidden="true">
                    <div class="modal-dialog">
                        <div class="modal-content" id="addcoupon">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-hidden="true">&times;</button>
                                <h4 class="modal-title" id="myModalLabel">增加优惠券</h4>
                            </div>
                            <div class="modal-body">
                                <form class="form-horizontal" role="form">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">名称</label>

                                        <div class="col-sm-10">
                                            <input id='coupon_name' class="form-control" placeholder="请勿使用特殊字符">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">金额</label>

                                        <div class="col-sm-10">
                                            <input id='coupon_price' class="form-control"
                                                   placeholder="单位元，保留两位小数，上限9999元">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">规则</label>

                                        <div class="col-sm-10">
                                            <input id='coupon_base_price' class="form-control"
                                                   placeholder="单位元，保留两位小数，例如输入99.99，则表示当商品满足99.99元时方可使用">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">数量</label>

                                        <div class="col-sm-10">
                                            <input id='coupon_amount' class="form-control" placeholder="请使用正整数">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">描述</label>

                                        <div class="col-sm-10">
                                            <input id='coupon_description' class="form-control" placeholder="优惠券描述信息">
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="coupon_type">类型</label>

                                        <div class="col-sm-10">
                                            <select id='coupon_type' class="form-control">
                                                <option>1</option>
                                                <option>2</option>
                                                <option>3</option>
                                                <option>4</option>
                                                <option>5</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="starttime">开始时间</label>

                                        <div class="col-sm-10">
                                            <input id="starttime" type="text" value="">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label" for="endtime">结束时间</label>

                                        <div class="col-sm-10">
                                            <input id="endtime" type="text" value="">
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="modal-footer">
                                <button id="close" type="button" class="btn btn-primary" data-dismiss="modal">关闭
                                </button>
                                <button id="confirm" type="button" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<link rel="stylesheet" type="text/css"
      href="/static/home/vendor/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
<script type="text/javascript" src="/static/home/vendor/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"
        charset="UTF-8"></script>
<script type="text/javascript"
        src="/static/home/vendor/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
        charset="UTF-8"></script>
<script src="/static/home/widget/shop/coupon/coupon.js"></script>
